package com.lry.rpc.starter.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.annotation.AnnotationAttributes;

public class ReferenceBean<T> extends ReferenceConfig<T> implements FactoryBean, InitializingBean, DisposableBean {

    public ReferenceBean(Class<?> interfaceClass, AnnotationAttributes attributes,String proxy,String router) {
        super(interfaceClass,attributes,proxy,router);
    }

    @Override
    public void destroy() throws Exception {

    }

    @Override
    public Object getObject() throws Exception {
        return get();
    }

    @Override
    public Class<?> getObjectType() {
        return getInterfaceClass();
    }

    @Override
    public void afterPropertiesSet() throws Exception {

    }

}
